/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { RString } from '../models/RString';
import type { SqlConvertDTO } from '../models/SqlConvertDTO';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class SqlConvertControllerService {

    /**
     * @param requestBody
     * @returns RString OK
     * @throws ApiError
     */
    public static convertSqlToMarkdown(
        requestBody: SqlConvertDTO,
    ): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/1.0/tools/sql/convertSqlToMarkdown',
            body: requestBody,
            mediaType: 'application/json',
        });
    }

    /**
     * @param formData
     * @returns RString OK
     * @throws ApiError
     */
    public static convertFileSqlToMarkdown(
        formData?: {
            file: Blob;
        },
    ): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/1.0/tools/sql/convertFileSqlToMarkdown',
            formData: formData,
            mediaType: 'multipart/form-data',
        });
    }

    /**
     * @param requestBody
     * @returns RString OK
     * @throws ApiError
     */
    public static convertDtoToMarkdown(
        requestBody: SqlConvertDTO,
    ): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/1.0/tools/sql/convertDTOToMarkdown',
            body: requestBody,
            mediaType: 'application/json',
        });
    }

    /**
     * @param formData
     * @returns RString OK
     * @throws ApiError
     */
    public static compareFileSqlToMarkdown(
        formData?: {
            file1: Blob;
            file2: Blob;
        },
    ): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/1.0/tools/sql/compareFileSqlToMarkdown',
            formData: formData,
            mediaType: 'multipart/form-data',
        });
    }

}
